<!--Descriptive page name, messages and instructions-->
<h2><%=h t('.works.preview.preview_work_tags', :default => "Preview Work Tags") %></h2>
<%= error_messages_for :work %>
<!--/descriptions-->

<!--main content-->
<div id="previewpane">
  <div class="draft work">
    <%= render :partial => 'works/meta', :locals => {:work => @work} %>
  </div>
</div>
<!--/content-->

<%= form_for(@work, :url => {:action => :update_tags}) do |form| %>
  <%= form.hidden_field :rating_string, :value => "#{@work.rating_string}" %>
  <%= form.hidden_field :warning_string, :value => "#{@work.warning_string}" %>
  <%= form.hidden_field :category_string, :value => "#{@work.category_string}" %>
  <%= form.hidden_field :fandom_string, :value => "#{@work.fandom_string}" %>
  <%= form.hidden_field :relationship_string, :value => "#{@work.relationship_string}" %>
  <%= form.hidden_field :character_string, :value => "#{@work.character_string}" %>
  <%= form.hidden_field :freeform_string, :value => "#{@work.freeform_string}" %>

  <fieldset>
    <legend><%= t('.post_work', :default => 'Post Work') %></legend>
    <p class="submit">
  	<% if @work.posted? %>
  		<%= submit_tag t('.forms.update', :default => 'Update'), :name => 'update_button' %>
  	<% else %>
  		<%= submit_tag t('.forms.post', :default => 'Post'), :name => 'post_button' %>
  	<% end %>
      <%= submit_tag t('.forms.edit', :default => 'Edit'), :name => 'edit_button' %>
      <%= submit_tag t('.forms.cancel', :default => 'Cancel'), :name => 'cancel_button' %>
    </p>
  </fieldset>

<% end %>
